/**
 * 验证码相关接口
 */
import request from '@/config/request'

/**
 * 获取验证码
 */
export const getCaptcha = (data: any) => {
  return request.postOriginal({ url: '/system/captcha/get', data })
}

/**
 * 滑动或者点选验证
 */
export const captchaCheck = (data: any) => {
  return request.postOriginal({ url: '/system/captcha/check', data })
}

/**
 * 发送邮箱验证码
 */
export const sendEmailCaptcha = (email: string) => {
  return request.get({ url: '/system/captcha/sendEmail', params: { email } })
}

/**
 * 校验邮箱验证码
 */
export const checkEmailCaptcha = (email: string, code: string, uuid: string) => {
  return request.post({ url: '/system/captcha/checkEmail', params: { email, code, uuid } })
}
